package com.example.demo.service;

import com.example.demo.DTO.OrderItemDTO;
import com.example.demo.pojo.Cart;
import com.example.demo.pojo.Order;
import com.example.demo.pojo.OrderItem;
import com.example.demo.request.CreateOrderRequest;
import org.apache.ibatis.annotations.Insert;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IOrderService {
	@Transactional(rollbackFor = Exception.class)
	String create(CreateOrderRequest createOrderReq);
	void cancel(String orderNum);
	String qrcode(String orderNo);
	void pay(String orderNo);
    void confirmOrder(String orderNo);
	List<OrderItemDTO> getOrderItemsGroupedBySeller(Integer userID);
    void refund(String orderNo);
}
